import request from '@/utils/request'

export function courseList(query) {
  return request({
    url: '/course/courseList',
    method: 'get',
    params: query
  })
}

export function courseEdit(data) {
  return request({
    url: '/course/courseEdit',
    method: 'post',
    data
  })
}

export function subList(query) {
  return request({
    url: '/course/subList',
    method: 'get',
    params: query
  })
}

export function subEdit(data) {
  return request({
    url: '/course/subEdit',
    method: 'post',
    data
  })
}

export function buyList(query) {
  return request({
    url: '/course/buyList',
    method: 'get',
    params: query
  })
}
